package org.liuping.common.utlis;

import me.zhyd.oauth.config.AuthConfig;
import me.zhyd.oauth.request.AuthGiteeRequest;
import me.zhyd.oauth.request.AuthRequest;

public class OauthRequest {
    /**
     * 第三方登录请求
     * redirectUri为处理授权后的回调地址，由专门的controller接收
     * @return
     */
    public static AuthRequest getAuthRequest(){
        return new AuthGiteeRequest(AuthConfig.builder()
                .clientId("f76920f91dfc815a82abc7962206cf2908560593f39ca07baaa62cff6df70835")
                .clientSecret("4ada1bedc3aa02ed70b9272c9e06e1f9efb3e8cb60fef8c5925d5ff155dc4e8d")
                .redirectUri("http://localhost:8001/oauth/callback")
                .build());
    }
}
